package com.bw.user.controller;


import cn.hutool.core.util.ObjectUtil;
import com.bw.core.result.ResponseResult;
import com.bw.user.service.TbOperatorAuthService;
import com.bw.user.vo.OperatorVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 运营商认证表 前端控制器
 * </p>
 *
 * @author lv
 * @since 2021-03-23
 */
@RestController
@RequestMapping("/tb-operator-auth")
public class TbOperatorAuthController {

    @Autowired
    private TbOperatorAuthService  operatorAuthService;

    @PostMapping("/operatorauth")
    public ResponseResult operator(@RequestBody OperatorVo operatorVo)
    {
        if (ObjectUtil.isNull(operatorVo)){
            return ResponseResult.error("对象为空");
        }
        return operatorAuthService.operator(operatorVo);
    }


}
